let userinfoTables = require("../model/SystemManagement/userinfoTables"); //用户信息
let jobtitleTables = require("../model/SystemManagement/jobtitleTables"); //角色信息
let usertypeTables = require("../model/SystemManagement/usertypeTables"); //用户类别

module.exports = {
  queryUserinfo: (params) => {
    return userinfoTables.find(params).sort({ usertype: 1 }); //查询用户 根据用户类别排序
  },
  addUserinfo: (list) => {
    return userinfoTables.insertMany(list); //批量新增用户
  },
  delUserinfo: (name) => {
    return userinfoTables.deleteMany(name); //删除
  },
};
